package com.henanuniversity.service.impl;

import com.henanuniversity.dao.impl.OrderDetailetDao;
import com.henanuniversity.dao.impl.OrderDetailetDaoImpl;
import com.henanuniversity.po.OrderDetailet;
import com.henanuniversity.service.OrderDetailetService;
import com.henanuniversity.utils.DBUtils;

import java.util.List;

public class OrderDetailetServiceImpl implements OrderDetailetService {
    @Override
    public List<OrderDetailet> listOrderDetailetByOrderId(Integer orderId) {
        List<OrderDetailet> list=null;
        OrderDetailetDao dao=new OrderDetailetDaoImpl();
        list = dao.listOrderDetailetByOrderId(orderId);
        DBUtils.close();
        return list;
    }
}
